#include <ros/ros.h>
#include <iostream>
#include <sstream>
#include "naojointcontrol.h"

int main(int argc, char **argv)
{    
    ros::init(argc, argv, "nao_jointcontrol");
    //  ros::Time::init();

    NaoJointcontrol *controller;
    try{
        controller = new NaoJointcontrol(argc,argv);
    }
    catch (const std::exception & e)
    {
        ROS_ERROR("Creating NaoJointcontrol object failed with error ");
        return -1;
    }
    controller->run();
    delete controller;
    return 0;
}
